package cc.lucien.repository;

import cc.lucien.entity.User;

import java.util.Collection;

/**
 * @author lucien-ma
 * @date 2021/9/20
 * @apiNote
 */
public interface UserRepository {
    Collection<User> findAll();

    User findById(Integer id);

    void saveOrUpdate(User user);

    void deleteById(Integer id);
}
